<template>
  <div>
    <TopNav :title="title"></TopNav>
    <HouseList :list="list"></HouseList>
  </div>
</template>

<script>
import TopNav from '@/components/TopNav.vue'
import HouseList from '@/components/HouseList.vue'
import { getFavorites } from '@/api/article'
export default {
  data () {
    return {
      title: '收藏列表',
      list: []
    }
  },
  components: {
    TopNav,
    HouseList
  },
  methods: {},
  async created () {
    const { body } = await getFavorites()
    console.log(body)
    this.list = body
  }
}
</script>

<style lang="less"></style>
